package com.cqc.paoclient.ui.search.code;

import com.cqc.paoclient.base.BaseRxPresenter;
import com.cqc.paoclient.base.BaseView;
import com.cqc.paoclient.model.CodeModel;

import java.util.List;

/**
 * Created by cui on 2017/11/26
 *
 */

interface CodeFragContract {

    interface View extends BaseView {
        void getCodeListSuccess(List<CodeModel.ItemsBean > items);

        void getCodeListFail(String error);

        void loadMoreCodeListSuccess(List<CodeModel.ItemsBean > items);
    }

    abstract class Presenter extends BaseRxPresenter<View> {
        abstract void getCodeList(String keyword);
        abstract void loadMoreCodeList(String keyword);
    }
}
